package honeypot.action;

import java.text.DateFormat;
import java.util.Calendar;
import java.util.Date;
import com.opensymphony.xwork2.ActionSupport;

public class Action extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Date now;
	private Calendar cal;
	private DateFormat d2;
	private String str2;
	public String execute() throws Exception
	{
    now = new Date(); 
     cal = Calendar.getInstance(); 
     d2 = DateFormat.getDateTimeInstance(); 
     str2 = d2.format(now);
     System.out.println(str2);
    return "find_all_success";
    
	}
	public Date getNow() {
		return now;
	}
	public void setNow(Date now) {
		this.now = now;
	}
	public Calendar getCal() {
		return cal;
	}
	public void setCal(Calendar cal) {
		this.cal = cal;
	}
	public DateFormat getD2() {
		return d2;
	}
	public void setD2(DateFormat d2) {
		this.d2 = d2;
	}
	public String getStr2() {
		return str2;
	}
	public void setStr2(String str2) {
		this.str2 = str2;
	}

}
